﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master"
    AutoEventWireup="true" CodeBehind="Tab3.aspx.cs" Inherits="Jzy.Web.WorkFlow.Design.Tab3" %>

<%@ Register Src="TabItems.ascx" TagName="TabItems" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <asp:Literal ID="head" runat="server"></asp:Literal>

    <script type="text/javascript">
        function setMenu(ctlName)
        {
            var menu = document.getElementById("divmenu");
            if (menu == null)
                menu = document.createElement("div");

            menu.style.display = "block";
            menu.style.position = "absolute";
            
            var coords = getMouseCoords()
            menu.style.left = coords.x + "px";
            menu.style.top = coords.y + "px";
            
            var items = "<a href='javascript:;' onclick='hide();showCustDlg(\"BasicSet.aspx?FlowID=<%=FlowID %>&Name=" + ctlName + "\",null,460,250);'>基本设置</a>";
            items += "<a href='javascript:;' onclick='hide();showCustDlg(\"RightSet.aspx?FlowID=<%=FlowID %>&Name=" + ctlName + "\",null,550,400);'>权限设置</a>";

            menu.innerHTML = items;

            menu.id = "divmenu";

            document.body.appendChild(menu);

            window.setTimeout("document.onclick = HideDiv", 100);
            
        }
        function HideDiv()
        {
            var src = getEventSender();
            if (src.tagName.toLowerCase() != "img")
            {
                var tmp = src.parentElement;
                if (tmp == null || tmp.id != "divmenu")
                {
                    hide();
                }
            }
        }

        function hide()
        {
            document.getElementById("divmenu").style.display = "none";
            document.onclick = null;
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <uc1:TabItems ID="TabItems1" runat="server" TabIndex="2" />
    <div id="formContent" style="text-align: center; overflow: auto; padding-top:10px;">
        <div style="margin: auto; width: 90%;">
            <asp:Literal ID="litForm" runat="server"></asp:Literal></div>
    </div>
</asp:Content>
